Attempt to fix three-level directory problems.