Use os.O_EXCL when opening temporary file. Fixes #2.