improved dotupdate script