Fix minor errors in bw.sh