diff --git a/Distribution/Cab/Commands.hs b/Distribution/Cab/Commands.hs
--- a/Distribution/Cab/Commands.hs
+++ b/Distribution/Cab/Commands.hs
@@ -116,7 +116,7 @@
     makeOptList x  = [x]
     queryGhcPkg sandboxOpts field = do
         let options = ["field"] ++ sandboxOpts ++ [name ++ "-" ++ ver, field]
-        unwords . tail . words <$> readProcess "ghc-pkg" options ""
+        (!!1) . words <$> readProcess "ghc-pkg" options ""
     cutTrailing suffix s
       | suffix `isSuffixOf` s = reverse . drop (length suffix) . reverse $ s
       | otherwise             = s
diff --git a/cab.cabal b/cab.cabal
--- a/cab.cabal
+++ b/cab.cabal
@@ -1,5 +1,5 @@
 Name:                   cab
-Version:                0.2.7
+Version:                0.2.8
 Author:                 Kazu Yamamoto <kazu@iij.ad.jp>
 Maintainer:             Kazu Yamamoto <kazu@iij.ad.jp>
 License:                BSD3
