Revert "fix RTT_RTGUI getenv"

This reverts commit a8b0f490cfd7b2633e66d93fecdb53fe268d97ed.
Revert "Revert "fix RTT_RTGUI getenv""

This reverts commit f27c0780b6707d84f0aee044a8fc9caef6cef225.