Fixed bug where getting git revision returned py None and messed c++ compile