Updated pretty url auto-configuration script for Vagrant for better error handling