Modified to also run on NX-OS

Modified the scripts to handle some of the differences between IOS and
NX-OS outputs.  These scripts should now run correctly when pulling
from NX-OS devices.