Use getenv instead read cmd from /proc, freebsd guys happy.