Jam: Fix an extension searching bug for Jam --scriptname on Windows

Thanks, Spencer!