Updating the bootstrap script with error codes and refactored coral gem installation.