changing glance_configure function to the one that configures g-api and g-reg separately
fixing some minor issues in local.sh