Update rimraf to latest version. Closes gh-1043.

* Ref gh-746