Fix -menu option.

Adopt for Windows platform.