Updated bashrc to work with env variables, and added rebuild and restart scripts.