Improved diagnostics for env setup problems.