Fix bug on some architectures where symlink loop detection didn't work.