add.c: extract new die_if_path_beyond_symlink() for reuse