Fix `lodash` module generation, don't warn of remove deps when using the `silent` flag, and cleanup code.