fix base dir for regtest
fix other uses of self.builddir