Improved the safety of remove_path_recursive().

Specifically, such function no longer behaves silently but requests user
confirmation when the current shell is interactive. Ideally, such refactoring
should be propagated to other path operations -- but really, who has the
idealistic time?