Adapt coverage.py script to work with cmake projects.