Replace $NUPIC to ${TRAVIS_BUILD_DIR}

This PR aims remove $NUPIC env variable from Travis scripts in favor of the default ${TRAVIS_BUILD_DIR} special variable. One of the advantages is that travis scripts become more generic (which allows they be reused on other repositories).