add fallback to gemspec if git command isn't available

this fix allows bundler to still function when git is unavailable