Don't append duplicate files on cmd line multiple times

If a file is specified multiple time on the command line, do not
append it multiple times.