It is, so it's problably just a mistake not replacing 'config.glade' in the script.
Have you tried replacing 'config.glade' with 'config.ui'?
When reporting issues, please include any relevant information such as OS (and version), python version (for Windows users this depends on which Deluge installer was used), Deluge version and plugin version.