Optimization for .exe path check

The majority of minions will be running a non-Windows OS, so this tweak
keeps salt.utils.is_windows() from being run unless the non-.exe path
check fails.