Bringing CI_BUILD_REF environment variable into master

Per https://github.com/gitlabhq/gitlab-ci/pull/112#issuecomment-14011138