Switch to rimraf for file removal (more robust error handling), simplify statistics.