Insert "./" in front of pathname when it contains no '/' (if USE_SHLIB)
diff --git a/Python/importdl.c b/Python/importdl.c
index 2c1fad0..d68b002 100644
--- a/Python/importdl.c
+++ b/Python/importdl.c
@@ -242,6 +242,12 @@
 		void *handle;
 	} handles[128];
 	static int nhandles = 0;
+	char pathbuf[260];
+	if (strchr(pathname, '/') == NULL) {
+		/* Prefix bare filename with "./" */
+		sprintf(pathbuf, "./%-.255s", pathname);
+		pathname = pathbuf;
+	}
 #endif
 	sprintf(funcname, FUNCNAME_PATTERN, name);
 #ifdef USE_SHLIB