Refactoring/edit of the monitoring scripts for remote dumps

Refactoring of the scripts
Remove additional character carried over as part of the cf files/curl
command that interferes with heap dump reads.