PM-733 fix for detecting pegasus lite failures and recording it in the
database.
PM-733 the job has a variable associated indicating whether monitord
thinks it has rotated job logs or not. depending upon that or if
kickstart output is detected the stdout and stderr filename in the
database is recorded with the rotated name, rather than the name in
the submit file. the previous commit, was resulting in double addition
of rotation suffix for vanilla kickstart outputs.
PM-733 while reading in the stdout and stderr files we need to have
the rotation logic.