diff --git a/Cargo.toml b/Cargo.toml
index e07ed790fbcf8dfbdfce0adc11eedfb2d7f3d26d..0001eb31119c68e1e9dcde8837c4ac23341389d1 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
 [package]
 name = "hashtoc"
-version = "0.1.2"
+version = "0.1.3"
 authors = ["Anders Blomdell <anders.blomdell@control.lth.se>"]
 build = "build.rs"
 links = "libhash.a,libssl"
diff --git a/src/main.rs b/src/main.rs
index 5269998ed119104d42c8814f981ba218472d7073..98bfda3f195a53d1fe74384bb153c0a1431d2dc3 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -502,6 +502,16 @@ fn dispatcher(options: clap::ArgMatches,
                       check_name(front.inode.path.as_os_str())) {
                     continue
                 }
+                let mut path = front.inode.path.as_path();
+                loop {
+                    match path.strip_prefix("./") {
+                        Ok(p) => path = p,
+                        _ => break
+                    }
+                }
+                if path.eq(Path::new("")) && front.kind != ' ' {
+                    continue
+                }
                 match front.kind {
                     ' ' => {
                         // Start of new path
@@ -534,13 +544,6 @@ fn dispatcher(options: clap::ArgMatches,
                     Unused => (),
                     _ => unreachable!()
                 }                
-                let mut path = front.inode.path.as_path();
-                loop {
-                    match path.strip_prefix("./") {
-                        Ok(p) => path = p,
-                        _ => break
-                    }
-                }
                 bprint!("{}:", front.kind);
                 bwrite!(path.as_os_str().as_bytes());
                 zprintln!();