Fix directory munger