Do a checkout of the branch after a git clone

In order to close the issue https://github.com/gitlabhq/gitlab-ci-runner/issues/22