add maxFiles option to delete old rotated files