Code in ifplatform needs to be reviewed. If it could be done with expl3 commands directly the package can be simplified significantly.