autodetect number of jobs