Added bash_profile support for osx and ubuntu