Fixes directory ownership