update all occurences of shutil.rmtree() to use fileutil.onerror, which catches a windows permission error