rdmd: Consider PATHEXT on Windows when trying to find dmd

When DMD is built with VS, `argv[0]` doesn't always contain an extension, which affects `-v` output and confuses `rdmd`.