Improve error messages for invalid --nic / --file.

Implemented by catching the valueerror thrown when unpacking a split to
two variables but the split string is not present.

Change-Id: I9930fe828c932e103fdad1b88c3434f097664f31
Merge "Improve error messages for invalid --nic / --file."