Fix generate scripts to work outside of the repo.
Merge pull request #495 from code-dot-org/fix-generate-scripts

Fix generate scripts to work outside of the repo.