core: Fix z_sites_dispatcher so it accepts empty paths. Fixes #842