Revert Cake to CakePHP in ShellDispatcher::_initEnvironment()