Index: nse_init.cc
===================================================================
--- nse_init.cc	(revision 6245)
+++ nse_init.cc	(working copy)
@@ -228,12 +228,19 @@
 	bool extension_not_matched = false;
 	for(iter = unusedTags.begin(); iter != unusedTags.end(); iter++) {
 
+		bool retried = false;
 		c_iter = strdup((*iter).c_str());
+		retry:
 		type = init_fetchfile(path, sizeof(path), c_iter);
 		free(c_iter);
 		
 		switch(type) {
 			case 0: // no such path
+				if (!retried) {
+					c_iter = strdup((*iter + std::string(SCRIPT_ENGINE_EXTENSION)).c_str());
+					retried = true;
+					goto retry;
+				}
 				error("%s: No such category, file or directory: '%s'", SCRIPT_ENGINE, (*iter).c_str());
 				return SCRIPT_ENGINE_ERROR;
 				break;

