diff --git a/Test/Hspec/Server/ServerType.hs b/Test/Hspec/Server/ServerType.hs
--- a/Test/Hspec/Server/ServerType.hs
+++ b/Test/Hspec/Server/ServerType.hs
@@ -62,10 +62,10 @@
 
 instance ServerType Vagrant where
   stSetup a = do
-    os' <- detectOS a
     (e,conf,_) <- readProcessWithExitCode "vagrant" ["ssh-config"] []
     when (e /= ExitSuccess) $ do
       error "vagrant setup error"
+    os' <- detectOS (a {vConf = Just conf})
     return $ a {vConf = Just conf,vOS = os'}
   stOS = vOS
   stName = vHostName
diff --git a/hspec-server.cabal b/hspec-server.cabal
--- a/hspec-server.cabal
+++ b/hspec-server.cabal
@@ -2,7 +2,7 @@
 -- documentation, see http://haskell.org/cabal/users-guide/
 
 name:                hspec-server
-version:             0.3.0
+version:             0.3.1
 synopsis:            Test Framework for Server's status
 description:         Hspec-Server is test framework for checking server's status.
                      It is inspired by the Ruby library ServerSpec.
