Added an extra defense for OS version check