gitfs: attach to gitfs remote cachedir if present (0.17 branch)

This commit makes Salt check for the repository before attempting to
initialize it.