moving the report type in a var

This allows one to get an HTML report with:
    make COVERAGE_REPORT=html covercheck
fixing an error when nothing can be read on stdin
keypress tests