added git spec, change git, puppet and chef to use util method