Merge pull request #3 from niku4i/fix_name_error

Fix NameError of ConfigError
Support derive