updated utils to handle regtest, simnet

handle active network assignment in the same if-else
instead of having another switch-case