Change rm invocation from rm -r to rm -rf

Fixes #941.