MAINT: fix coverage and coveralls

Ensure .coveragerc is in the directory where the tests are run, and make
submission coveralls.io generate correct path names.
Merge pull request #3598 from pv/coverage-fix

MAINT: fix coverage and coveralls