Fixing '.' directory on OSX