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.