Auto-detect composer installed CakePHP folder.

It feels a little bit awkward having to adjust index.php and test.php manually after baking a new repo.
And especially having to add complete lines to make composer work out of the box.

This patch makes the auto-detection work without any modifications necessary.
No, in my case the app is not the root folder. But that's ok, I have no preference