Make init scripts work on osx