fix persisters writing temporary writing
be sure to remove the temp file
write into same dir of the targhet file
Merge pull request #555 from ccancellieri/2.5.x-GEOS-6373-persister-failure

[Backport] fix persisters writing temporary writing