Improve support for extension-less output filenames