Added fix for EnvSwitcher when cake is run via CakeConsole