Fix getting environment variable MSYSTEM. Posix apps uses getenv instead GetEnvironmentVariable.