Change rm invocation from rm -r to rm -rf

Fixes #941.
Merge pull request #1167 from Frenzie/master

Change rm invocation from rm -r to rm -rf