forward input version through to output script

if a resource is used as both an input and an output of the same job,
the version of the input is passed to it in the request

[finishes #74916014]