fix input output name correspondences for bph.pl. Wait for all forked processes to finish before proceeding the downstream analysis