Moved file checking into index.js.

Reverted changes to load-config.js.