clamdscan: add support for remote TCP/IP clamd

previous version only worked when clamd was running on the same machine and had access to the spool file. This version also works with a remote clamd.