fix creating and using of regtest output dir