fixed a bug where a build.xml file was being opened for the xml parser in non-binary mode