Fix how we detect platform in various cases