Try a different style for using environment variables, derived from:
http://stackoverflow.com/questions/12643018/how-to-get-travis-ci-build-number-within-after-script-command