Handle trailing spaces in build commands
A sequence of command lines where one or more of contain trailing spaces is converted to a DoubleQuotedScalarString by the YAML parser. Handle this type and remove any trailing spaces before converting the YAML.