fix merge
adds directory checks before calls to rm. adds sane default settings for build environment variables.
fixes directory checks
removes _HOME suffix to NUPIC in README
adds newline to end of build script file
fixes syntax error
fix merge