Modify the scripts can run correctly in Mac os

configure_x264.sh and configure_ffmpeg.sh