Use full path of file to distinguish IWAD/PWAD

Previous commit had a couple of issues.