Automatically detect presence of coverage or python-coverage.
Fix for Numpy1.8
Added security checks, protecting against marker loss.