Add elementtree to mca for XML parsing
Minor syntax issues; function hoisting
Add scan-manifest internal command for pre-prepare hook