fix for writing sieve file during mail account creation - fixed writing to correct file - better error handling and logging See merge request !160