update patches_version and script for auto-update