fix removing of symlinks