chdir was causing long delays, moved the checker from this place to the connectivity check, added keepalive
Changed submission recovery to a better version that keeps in mind the submission time. Changed to sacct since the job could be finished. Also now the jobs are not cancelled if they're not duplicated.
(cherry picked from commit 2cb9eb1b)
(cherry picked from commit 76aed3dd)
(cherry picked from commit 4831fc1c)