improve the version setting script