Prevent duplicate files in source list.
Combine two if statements