Fix handling of certain git implementations

Closes #87.