fixing run bug for osx init script