Filter duplicate files

Fix for #21