improve safe_rm.sh