fixed install script so it can be run from anywhere, hopefully fixed HISTFILE properly this time, made all the env var assignments explicit