generate models/index.txt even if there are spaces in path to repo

this was going awry in Jenkins, where we have spaces in the workspace
paths exactly to catch these sorts of issues