refactor from detected deployment dir to an explicit one. Make all commands exec, so if they fail the script fails.