Improve fix for log file generated

Same as [this PR](https://github.com/excilys/androidannotations/pull/1289) but improved.
Yeah, this is a singleton class... I'll re-add that right now.