fix some issues with launchd jobs