Improve the filter for postrotate-nginx