Synchronise build system with OPM core

This pull request brings recent (and not-so-recent) changes from the OPM core build system into that of module dune-cornerpoint.  Notable addition is the `check-commits` target.