ENH: Add check for empty filepath in config files