Fix bootstrap.sh behaviour