Add branch switch to deploy.staging.* tasks
Improve branch switch