revert unwanted filemode changes