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

Allow creating of missing tmp directories in debug (development) mode for cache and log to avoid unnecessary errors thrown.