allow missing tmp directories to be autocreated in debug mode

allow creating of missing tmp directories in debug (development) mode for cache and log to avoid unnecessary errors thrown

@see http://cakephp.lighthouseapp.com/projects/42648/tickets/885-tmp-cache-folders-autocreation