add CAKE to the paths after handling parameters that depend on _isExtrac...

...tingApp() return value, fixes LH-3442