Fix for #721 composer installed in custom path

Here is the pull request to fix the composer installed in a custom path.