fix bug in launchd template for mac