Fixed infinite file inclusion looping

Duplicate files in one batch will now be skipped