Fix the TRAVIS_BUILD_DIR path

Use dirname on the path rather than take it as is.
Merge pull request #5 from nickjj/travisbuilddir

Fix the TRAVIS_BUILD_DIR path