(Bug 4647) Use git ls-tree to list all files in the repository

Also fixes one file that lacked a "use strict".