Fix issue 766

Load only configuration files having one of the supported extensions.
This commit fixes issue #766.