Moved path stuff to bashrc and made it smarter.