Prevent overwriting existing file. Fixes #1.