0.7.1 dynnetfix

Backport of the dynamic network mode fix applied to the tag 0.7.1. The fix is described in the threads:
https://sourceforge.net/p/flom/discussion/general/thread/cf59b6dc/
and
https://sourceforge.net/p/flom/discussion/general/thread/872ec08c/