fixes https://github.com/isaacs/npm/issues/3566