Fixes directories on mac