Fix bugs introduced by last commit
Check for already existing networks on host