fixed composer installer to use target dir correctly

this way should work with yii2-dev and yii2 normal as it composes the path exactly like it is specified in composer.json.