Importer subprocess cleanup

This mainly cleans up how subprocesses are called by the importers, with the goal to avoid situations where error status are not caught properly, and the removal of Dir.chdir (which we can't parallelize). It also makes autobuild learn to make the difference between errors that can be retried and errors that can't to avoid having 10 retries if e.g. a local branch does not exist.