You'd be better off returning a generator here, then we only need to create the filenames until we find a match.