Fix cap deploy:pending task when deploying not from master branch