Fixes and improvements to bash_profile, and duti.