Fixes Issue 9827 - Emit better diagnostic on duplicate files in command-line.