modified mk_wav.sh