Perhaps just unset NUPIC_INSTALL after it is no longer needed?