Started using rimraf, fixed a bug.