Using preferred syntax for checking platform