Improve error logging in InstallCommand