Fix invalid $BRANCH variable to $GIT_BRANCH

In deploy.sh rename $BRANCH to $GIT_BRANCH.
Also improve dry-run mode by properly quoting all commands to allow pipes and redirections being processed by exec() and run() functions.