fixed linux script; better logging in update host