servers: skip empty path components (fixed issue #290)