Index: /trunk/xcache.c
===================================================================
--- /trunk/xcache.c	(revision 949)
+++ /trunk/xcache.c	(revision 950)
@@ -1113,5 +1113,5 @@
 			efree(opened_path);
 			compiler->opened_path = compiler->opened_path_buffer;
-			if (!statbuf || VCWD_STAT(compiler->filename, statbuf) == 0) {
+			if (!statbuf || VCWD_STAT(compiler->opened_path, statbuf) == 0) {
 				return SUCCESS;
 			}
