Enhancing auto-update script