jobinfo need not return mode anymore, let it return complete includepath

also dont create a new DocInfo when a scratchdir is used, we do have the outputargs. just allow giving the filename separately to fileinfo.basenames()