Don't make source files executable.
This is a squash of two commits:

- add restoring of default configuration,
- add file locking.