Fixes #101 Cleanup emitted files when renaming (or deleting)