Join the processes in order to wait for them to finish.
Fix pip requirements file issue. Refs #4446, #4361 and probably #1615.