ece-build - refactored to avoid using sed for xml parsing