Fix indexing issue with netdump identification

SSH and NFS are not necessary at the beginning of the file.
Also fixed an undefined.

Signed-off-by: Louis Bouchard <louis.bouchard@canonical.com>