Or should this be called _guess_filename, in line with some other helper functions.