Fix composer app issues with cake.php

Refs https://github.com/cakephp/cakephp/pull/3726

This fixes the problem that one has to manually adjust the cake.php Console file.
Also, there is no need that the app one and the template one differ.

This auto-detects composer and uses the old root one as fallback.