avoid self-referential symlinks (fixes int3/doppio#257)