Fixed XML parsing bug. Shifted error to same file stdio.
Fixed bug in bash controller.