Only execute module scripts if the platform exists