Environment Handling: Improve the detection of the Path environment variable on Windows machines, ensuring that the correct path is used in various scenarios. This change enhances the reliability of the application when dealing with different environment configurations.
Fixes
Fix issues with path detection on Windows, preventing undefined paths from being passed to the which command. This resolves potential errors when the environment variable is not set correctly.