add guard against creation of a circular symlink