When you run the executable file, the operating system will execute the first instance of the file that it finds in the directories listed in your PATH environment variable. To ensure that the correct version of the file is being used, you can reorder the directories in your PATH variable to prioritize the directory containing the correct version of the file.