see https://github.com/composer/composer/issues/1314#issuecomment-13432908
I guess the fancy solution is https://coderwall.com/p/kz4egw