add workaround for https://github.com/composer/composer/issues/1746