[PLAT-3409] Fix script loading to also look locally