Fix crash when zones.d directory doesn't exist.

Fixes #6224
Test.