Improved launchctl function to be able to turn off and on services