Fix some directory issues.