Fixed the version test for darwin.