Fix git cache cleanup

This change fixes cache git tracking behaviour during PFS build.