6951: import/export test suite runner broken

Ported from gramps34 my commits r22744,5.
Adjusted for gramps40 path layout changes.

git-svn-id: svn+ssh://svn.code.sf.net/p/gramps/code/branches/maintenance/gramps40@22746 4ae1f11a-8b86-4847-b8af-ab372f36d1fd
6954: Output command line messages and progress information to stderr rather than stdout

git-svn-id: svn+ssh://svn.code.sf.net/p/gramps/code/branches/maintenance/gramps40@22750 4ae1f11a-8b86-4847-b8af-ab372f36d1fd
Fix unit tests

git-svn-id: svn+ssh://svn.code.sf.net/p/gramps/code/branches/maintenance/gramps40@22752 4ae1f11a-8b86-4847-b8af-ab372f36d1fd