Fix path checking for old Xcode.
Merge pull request #196 from blauerberg/fix_xcode_path_checking

Fix path checking for old Xcode.