Minor fix: added 'is defined' in check for config file for extensions.