Fixing attributes in createDirectoryAtPath