Set the network variable via enviroment variable (closes #3488)

If the environment variable 'DMAKE_NETWORK' is set, use it instead of
guessing the network. Fixes problems with FN network.