Index: main.cpp
===================================================================
--- main.cpp	(revision 22167)
+++ main.cpp	(working copy)
@@ -168,10 +168,13 @@
 	// We add it here, so MD5-based detection will be able to
 	// read mixed case files
 	if (ConfMan.hasKey("path")) {
-		if (!Common::File::exists(ConfMan.get("path"))) {
+        char cur_dir[MAXPATHLEN];
+        getcwd(cur_dir, MAXPATHLEN);
+		if (chdir(ConfMan.get("path").c_str())) {
 			warning("Game directory does not exist (%s)", ConfMan.get("path").c_str());
 			return 0;
 		}
+		chdir(cur_dir);
 		Common::File::addDefaultDirectory(ConfMan.get("path"));
 	} else {
 		Common::File::addDefaultDirectory(".");
