rm_rf: only try again if it fails

Also, don't use rd /s. Fixes #861.