checkout a branch if specified with DOKKU_BRANCH