Fix for OSX File patching.