With --testnet, look for testnet directory in the right place

With --testnet, we attempt to modify db_dir before it is set.  Also, the testnet subdirectory is now testnet3.