changed to atomic file replacement
Merge pull request #3 from st0ne-dot-at/master

changed to atomic file replacement