run-beagle: support selecting number of cpus when using nthreads option