Fixed plugin autoloader baking

Fixes https://github.com/cakephp/cakephp/issues/3810