Tidied up Netscaler cleanupConfiguration output parser

Improved the output parsing scripts to strip unwanted lines.
Also found issue where last line may be cut off.