Travis CI: Use new $TRAVIS_BUILD_DIR environment variable

Before this fix, environment variables defined `.travis.yml` were still
dependant of internal configuration of the travis worker virtual
machine. See also previous pull request #1728.

With this fix, generic and long term integration with travis-ci is better guaranteed.

See also http://about.travis-ci.org/docs/user/ci-environment/#Environment-variables