Prevent building symlink from looping forever when visiting itself

Closes https://github.com/bvssvni/rust-empty/issues/146