moved from /bin/bash to /bin/sh
externalised logfile filepath and moved to regex servername handling