Use the windows command "where" to look for GAMS before looking in directories.
This is similar to the unix command "which". This is useful in the cases where we have a non-standard install location or multiple GAMS installs (where one of which is on the path) or an uninstalled version of GAMS (which doesn't actually remove the folder, just the contents)
Tests
If gams.exe is not on the path, we then search C:/GAMS...
If gams.exe is in PATH but there are multiple install folders, correctly finds the right folder
If multiple gams.exe are on the path, the first one returned by "where gams" is chosen
Use the windows command "where" to look for GAMS before looking in directories.
This is similar to the unix command "which". This is useful in the cases where we have a non-standard install location or multiple GAMS installs (where one of which is on the path) or an uninstalled version of GAMS (which doesn't actually remove the folder, just the contents)
Tests
C:/GAMS...