Stat same as shell_is_osx does for BSD.