Fix issue 766

Load only configuration files having oneof the supported extensions.
This commit fixes issue #766.
Merge pull request #777 from cristianoc72/issue-766

Fix issue 766