Fix the detectoin of install dir for Windows.