fix genbeans.sh