move platform checking code to Mccloud::Util::Platform