[ finishes #54080837 ] use more specific evaluation in erb

 `if properties.foo` is allways true, when there is foo.bar defined in the job's spec file
under the properties session. so use `if properteis.foo.bar` is safer when we want to tell
if foo is present or not.