Support shell compatibility for Mac OSX