Use 4.0 path when configured with disabled 4.5 profile. Fixes #11233