updated rimraf to be windows friendly as per #2027