rootDir replaced by os.environ['NUPIC']