Apply changes from pylibgimpplugin

Among other changes, validation of the file extension and the output directory is now performed upon setting value assignment.