Added check for prerequesites before starting lsf jobs.