Improve filename handling and allow output of only binary or only C
files.