Make sure zero length paths don't sneak in