Made launchctl conditional on OS X