Fix directory issues.