Add use-mirror flag support 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.