do directory deletion with rimraf