add env handling to parrot QX

Prepare for a parrot rurban/openpipe-env-gh1065 merge.
See https://github.com/parrot/parrot/issues/1065