fixes #2202 use habitat for env loading