updated cron job to always use current hostname and log to file