Refactoring netcardconfig according to 'shellcheck' recommendations