Fixed small bug in which os.listdir was not found.