Add limit option to ixdiagnose that allows log files to be limited to a
certain number of lines