make sure self.mod_name is set during regtest run
Merge pull request #706 from boegel/fix_bugs

make sure self.mod_name is set during regtest run