Join the processes in order to wait for them to finish.
Fix pip requirements file issue. Refs #4446, #4361 and probably #1615.
Merge pull request #4596 from s0undt3ch/develop

 Fix pip requirements file issue. Refs #4446, #4361 and probably #1615