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 additions is the `check-commits` target.