Fixed sudo integration for Mac OS X 10.9