Move output redirections in jobs, remove lock files in all scripts.