Detect posix environment