Fix handling of COMPOSER_DISCARD_CHANGES env var