Distinguish between IWAD and PWAD files better

Check header for "IWAD" or "PWAD" id, otherwise a non-official IWAD
couldn't be loaded with any PWADs.