Fix #25 log rotate does not work with 1.4