Some bugs in the workaround for directory symlinks