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

[backport] 2.4.x geos 6373 persister failure