Use unique name and O_EXCL for temporary indexes (fixes #332)
Clarify repo mismatch message (fixes #331)