Maxlines jail setting tweaks

Added default value for _maxlines_ to config, to stop spamming "maxlines not defined" to log. Also added error checking for invalid value, rather than fallback to 1. Also added testcase.