scripts: Make detect_init_style() more readable