add add_to_path shell function in build.sh

requires 1 arg - new path,
add it to the PATH only once (script is called repetitively)
eg add_to_path /home/joe/nta/eng
export NUPIC_INSTALL addition to PATH

we use it to pip install,
but later tests failed when python was called without this addition.

This fixes the functionality
export pythonpath too