Cherry pick from 67f07adab1: Use env var to trigger loading scripts