Separate makefiles for regtest modules

This allows to run regtests inside e.g. regtest/basic directory