add os detection for the custom-early module