Simplify post-test cleanup

Removes cleanup from main testing processes into a posttest script. Uses node/rimraf for windows support (no rm -rf).