Updated the robustness of the Vagrant script.