Fix from: https://github.com/webpack/webpack/issues/424