Let's only run test/examples.jl if we can actually access the examples

Closes #8454

@JuliaBackports