Fix accidental escaping of $HOME in $TRAVIS_BUILD_DIR.

Add some more explicit tests for this particular piece as well.
Merge pull request #182 from travis-ci/mm-fix-escaping-home-in-travis-build-dir

Fix accidental escaping of $HOME in $TRAVIS_BUILD_DIR.