Improve fix for log file generated

Same as [this PR](https://github.com/excilys/androidannotations/pull/1289) but improved.
@dodgex no problem, thanks for mentioning it! I think it is completely ok to be afk on Christmas holidays. :smile: