Check for hardware acceleration support programmatically

Check for hardware acceleration support programmatically instead of via
OS version