fixed bugs in bootstrap.sh