Turning the module test bootstrap's getModulePath() generic