make protobuf/gen.sh script work without git
make protobuf/gen.sh script work without git

Summary: Let the script work even when code is not in a git repo.

Reviewed By: michsien

shipit-source-id: 41cc7c38302db81c7dbf809a7fa295842819ca0a

facebook/buck,kageiit/buck,nguyentruongtho/buck,nguyentruongtho/buck,Addepar/buck,JoelMarcey/buck,JoelMarcey/buck,kageiit/buck,JoelMarcey/buck,Addepar/buck,facebook/buck,nguyentruongtho/buck,nguyentruongtho/buck,JoelMarcey/buck,Addepar/buck,kageiit/buck,Addepar/buck,nguyentruongtho/buck,Addepar/buck,JoelMarcey/buck,JoelMarcey/buck,facebook/buck,JoelMarcey/buck,Addepar/buck,JoelMarcey/buck,nguyentruongtho/buck,JoelMarcey/buck,facebook/buck,facebook/buck,Addepar/buck,kageiit/buck,nguyentruongtho/buck,kageiit/buck,Addepar/buck,JoelMarcey/buck,kageiit/buck,facebook/buck,Addepar/buck,Addepar/buck,Addepar/buck,Addepar/buck,Addepar/buck,kageiit/buck,JoelMarcey/buck,JoelMarcey/buck,JoelMarcey/buck,facebook/buck