improve the shell scripts

https://rbcommons.com/s/OpenH264/r/727/