Check the DOOMWADDIR environment variable...

...when automatically looking for IWAD files.