[nginx] Extract out version info function.