Undo erroneous file mode changes