Fix iOS 7 detection when "-7" is in the file path