Add support for the `sw-precommit' script.