Bash difference in OSX and Ubuntu