Handle files that are deleted and then recreated

Fixes #12