Fix WAD launcher sometimes failing

Fixes issue #23. The problem was due to M_ExtractFilename().