Fix a silly bug in the StripFile function

fixes wadgen not working on OS X and Windows, heh