Made symbolic link removal more robust