WIP: fix for composer/composer#3382

Should fix composer/composer#3382