Often environment variables contain multiple directories. They should all be searched, but first they need to be split based on the correct path separator (usually : or ;)