Update pre_start script detection and modification