Change escape sequences to work with OSX Bash