fixed sh script issue for max osx