fix detecting gcc switches
Fix detecting Windows path list.