better target symlink handling