Added osx functions for bash.