Fix for launching shell from OSX