numerous changes from DIR_WRITE_MODE to FILE_WRITE_MODE
chmod operations on files were using the DIR_ constant permisisons
diff --git a/system/libraries/Output.php b/system/libraries/Output.php
index 4423ac7..0cf6739 100644
--- a/system/libraries/Output.php
+++ b/system/libraries/Output.php
@@ -331,7 +331,7 @@
 			return;
 		}
 		fclose($fp);
-		@chmod($cache_path, DIR_WRITE_MODE);
+		@chmod($cache_path, FILE_WRITE_MODE);
 
 		log_message('debug', "Cache file written: ".$cache_path);
 	}