Don't depend on .git folders or on error text strings