Make code that gets user's default shell OSX compatible.