The check for "dirty" executes the following command:
git update-index -q --refresh
This can take a considerable amount of time if the index does
need to be refreshed (particularly with the mono repo). This
situation can arise when building shared source on a host in
VMs.
This change removes the explicit "dirty" check and adds
the "--dirty" flag to the "git describe".