Keep last emerge calls in emerge.log. Fix perl warnings if emerge.log is broken