Fix lexical scoping error in pipeline creation
Fix lexical scoping error in pipeline creation

The `const` declaration will bind to the `try` lexical scope, causing a
reference error later on. This change fixes that.

zambezi/ez-build,zambezi/ez-build