Fix a few errors

Fix a few minor things.

Also: When using `cake upgrade` without any argument it would currently self-update itself and all vendor files, which is a bad thing.
The InternalErrorException prevents this for now.

I still get stuff like

> Notice Error: Undefined index: namespace

But that should be fixed once param() is available.