Stat same as shell_is_osx does for BSD.
Stat same as shell_is_osx does for BSD.