Fixed some file reading bugs, added in a pattern matcher to ensure only
wad/pk3/pk7 can be read (can be expanded in the future easily).