Corrected iOS device detection to detect iPad correctly and include iPod