fix scripts so they work on a fresh clone