Fixed bug where os.path.isfile isn't looking at the full path of a file.