Minor formatting
Extract method getNetworkInterfaceByName, rename variable

Avoid duplicated logic for setting up the network interface by name. 
Rename local variable ‘name’, because it’s also a field.
Remove obsolete comment
Allow the description result to be null, it is handled gracefully later
Check for short version strings from getLibraryVersion