I found out why it didn't work. One of the script that bedpostx_postproc.sh calls is written in python2. I set my default to python3 and therefore caused the error in the last step. After I loaded python2 environment, i got the merged files and finished properly. Thanks for your help as always!
Yoon