Restore $NUPIC, print TRAVIS_BUILD_DIR and other debug