Fix launchDaemon on macosx