Add support for --insert-globals to shim in variables