Fix check-sync-dirs bustage by porting bug 938510, rs=port by build-system peer