Removing .bash_profile stuff
Fixing dir check