Respect symbolic links on file write.

When user asks to write a subtitles to a symbolic link, a safe write on a real path of this link is
performed (i.e. a path that link points to).

This commit fixes issue #60.
Flush temporary file on atomic write.