added support for update scripts running as host user