Improve fix for log file generated

Same as [this PR](https://github.com/excilys/androidannotations/pull/1289) but improved.
@WonderCsabo not if you WANT to do some work. ;) but well :gift: :heart: