Fix thread count override and add -z flag to set thread count (#611) * Fix thread count override and add -z flag to set thread count * Enforce THREADS >= 1 after detection; validate -z range; clarify help text * Strip colours from -z warning; add regression tests for -z getopts/help * Tighten getopts regression test: match 'while getopts' line with regex