Create the regtest reference files only when necessary