Pass the build ref to build scripts

As a possible solution for https://github.com/gitlabhq/gitlab-ci/issues/74, would allow scripts to perform actions based on the branch