changes for better __ZRT_HOST support
setting HOME directory moved back to right place
fixed merge conflicts