Fix cannot build android platform with git repository.