diff --git a/deploy/checkServerStatus.sh b/deploy/checkServerStatus.sh
index a812366242c41dec4b7b2d7f56d64bc837602dd7..e7ec2593ee4d05f85502df5bbbdf7f6c65632f60 100755
--- a/deploy/checkServerStatus.sh
+++ b/deploy/checkServerStatus.sh
@@ -15,7 +15,7 @@ then
 	cd ~/MetaGer
 	cp .env.example .env
 fi
-if [ $(grep "SomeRandomString" .env) ]
+if [ $(grep "SomeRandomString" ~/MetaGer/.env) ]
 then 
 	cd ~/MetaGer
 	php artisan key:generate
@@ -40,7 +40,8 @@ then
 	git clone https://github.com/laravel/homestead.git Homestead
 	cd Homestead/
 	bash init.sh
-	cp -f "$path/deploy/Homestead.yaml" .homestead/Homestead.yaml
+	cd ~/
+	cp -f "$path/deploy/Homestead.yaml" .homestead/
 	vagrant up
 	echo "Your server is now running under http://localhost:8000"
 fi