Fix env parsing
Improve logging in misc wrapper, uninstall script