diff --git a/cabal-dir.cabal b/cabal-dir.cabal
--- a/cabal-dir.cabal
+++ b/cabal-dir.cabal
@@ -2,7 +2,7 @@
 -- documentation, see http://haskell.org/cabal/users-guide/
 
 name:                cabal-dir
-version:             0.1.0.0
+version:             0.1.0.1
 stability:           Experimental
 synopsis:            show dist dir of 'cabal copy/install'
 description:         
diff --git a/cabal-dir.hs b/cabal-dir.hs
--- a/cabal-dir.hs
+++ b/cabal-dir.hs
@@ -69,6 +69,7 @@
 printRPInstallDirs p = putStr . showRPInstallDirs p
 
 removePrefix :: FilePath -> FilePath -> String
+removePrefix "" s = s
 removePrefix p s
 	| p `isPrefixOf` s = dropWhile (== '/') $ drop (length p) s
 	| otherwise = s
