allow creating of missing tmp directories in debug (development) mode for cache and log to avoid unnecessary errors thrown - using 0775 for dirs and 0664 for files
Merge pull request #1194 from dereuromark/2.4-file-improvements

Allow creating of missing tmp directories in debug (development) mode