Fix logrotate lines max

$lines variable is not defined in "sg_script_logrotate" function.
tail: -: No such file or directory
Merge pull request #530 from sebvdk/patch-1

Fix logrotate lines max