add init git test env script
add test_update_cc_to_gcc and fix issues found