add configPath check
support json and  yml
Merge pull request #2 from larkjs/dev

support json and yml and add configPath check