Add pre-comit and Update .gemrc
Fix a bug in bootstrap.sh