Better platform checking