fix the mode of "intermediate" dirs that are really symlinks to dirs

this fixes the FIXMEs mentioned in commit 3d1bd88