Finish the support for arg 3: number of parallel grep processes

I saw that the script was at some point intended to have a third parameter, controlling the number of parallel grep processes.
This commit adds the necessary remaining parts for that.