Remove use of sed awk and dc, and add ability to use ssh to get info from a different computer

In addition to do that, I also changed a few other things to be more modern, and more Perlish.

If you want to pick and choose which commits to add, I will do anything I can to help.

The main reason I added the ssh ability, is that I don't have Perl installed on my
FreeNAS server, but I wanted to be able to run this command using the information from it.

It appears that the output has remained the same, but I don't have any BSD computers with Perl
on them, with which to check directly.