Fix "No file name specified" warnings
I don't think this matters in practice, but not having the warnings is nice.