Modify doc building bash script