Path rmtree bug fix

If shutil.rmtree or os.unlink tries to remove readonly files it errors
out, this is a handy way to catch it and chmod it away from readonly to
actually remove it