Remove unsupported -x option in launchctl command

Also added a break statement to prevent redundant second call.

Works on Yosemite but have not tested this on earlier versions. Feedback welcome.

Fixes #7154