(refs #7) Checks file duplication before export

Couldn't reproduce the issue by myself, but it should fix it.