patch-env: update application codebase on hosts first