The symlinks weren't correctly resolved if they were pointing to a single path component, such as `ln -s foo bar`.