Don't run rd in the final try in rm_rf

Fixes UnboundLocalError.