Fix and add additional console formatter environment checks.
Fix and add additional console formatter environment checks.

cakephp/cakephp,cakephp/cakephp,CakeDC/cakephp,cakephp/cakephp,CakeDC/cakephp,ADmad/cakephp,ADmad/cakephp,CakeDC/cakephp,ADmad/cakephp,ndm2/cakephp,ndm2/cakephp,cakephp/cakephp,CakeDC/cakephp,ndm2/cakephp,ndm2/cakephp,ADmad/cakephp