Code around weirdness in listing when no file or string.