def ConstructCommand(in_command):
command = ''
if(sublime.platform() == "osx"):
command = 'source ~/.bash_profile && '
command += in_command
return command
The issue is some times the user could have .profile file or other files for shell settings.
this gives the order which shell follows for setting up the environment: http://hayne.net/MacDev/Notes/unixFAQ.html