Revert all changes before building if any unexpected files are modified

This ensures that old patches aren't still applied when we build.