Ensure opts.config exists before checking it
Merge pull request #1 from mhart/fix-undefined-in-error

Ensure opts.config exists before checking it