Adapt coverage.py script to work with cmake projects.

Cmake projects generates files which contain the file extension, e.g. compiling sourcefile.cpp creates sourcefile.cpp.gcno. Calling "gcov sourcefile.cpp" doesn't work and in such situations gcov sourcefile.cpp.o should be called instead.