Investigate the behavior of the modules folder flag in yarn. The user expects that specifying a custom modules folder via modules folder should override the default node modules location. Review the yarn source code (likely in src/ or lib/) to understand how the flag is processed. Check if there are any existing tests or documentation clarifying this behavior. Consider whether this is a bug or the intended design, and if a fix would involve modifying the flag's implementation.