additional portability improvements

1) additional portability improvements for archive deployments 
2) output pretty xml for runtime-vars.xml