BUGFIX Unlink temporary file before renaming

Since we use temporary file only for good random name generation the file
itself must be removed in order to prevent errors during renaming.