Effort to tackle https://issues.jenkins-ci.org/browse/JENKINS-26059 to expand var during conditional