Only override versions when pride is enabled
Run check-versions only on top-level project