Improve ph_symlink() to detect existing links