Let multisite act consistent with our documentation - cut from the beginning, not from the end, when testing fallbacks. So a call to www.habari.com will be matched by www.habari.com, habari.com or com. Also make sure we don't test for empty directory parts. Fixes habari/habari#607