Resolves issue #4

Windows cannot handle two file descriptors open for the same filename.
After using a temp filename (and a temp file) Everything works as
intended.