fix scripts so they work when symlinked