Derive $NUPIC from $PWD and $TRAVIS_REPO_SLUG

https://github.com/travis-ci/travis-build/pull/182 may not be deployed yet, this is a workaround.