Change buildPrototype to only require *.js files.

This prevents a meaningless error if any non-JS files land
in the lib/commands or lib/helpers directories (as some
editors are wont to place).