RD-2976 cloudify-common version check: also drop suffixes (#809)
RD-2976 cloudify-common version check: also drop suffixes (#809)

* RD-2976 cloudify-common version check: also drop suffixes

6.2.0.dev1 should _not_ be considered lower than 6.2.0

* move writing inputs.json to under update_operation_state

this needs to stay under that ctxmanager, because it updates
ctx.resume
cloudify-cosmo/cloudify-agent,cloudify-cosmo/cloudify-agent