[lib] Fix error detecting environment.
Version 0.7.6