[medium] cornerstone of environment detection in agent
[minor] darwin package fix in makefile