Made the installation more robust with regards to modifying the standalone.xml