Handle MacosX for stat.