Fix shutdown script

Check the deployment location exists before shutting down redbox.