Switch back to previous branch on deployment