[minor/bug] fix agent version detection in upgrade module