Findopm-parser.cmake: make sure that the ERT libraries are available

and some other minor cleanups to the module. For me it still works,
but this being the build system, I can't guarantee more...