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

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