fix the cloud services shim.pl on Mac OS X