Add support for --use-mirror with optional arg

Pick and slice --use-mirror(=n) from mirrors array. Default to n=1
without arguments. Ignore n=0 or non-existent mirrors.