Fix for #721
bug #741 Fix caching when composer is installed in custom path (cmodijk)

This PR was merged into the 1.1-dev branch.

Discussion
----------

Fix caching when composer is installed in custom path

Here is the pull request to fix the composer installed in a custom folder.
Fix #721

Commits
-------

83be52f Fix for #721