This patch should fix path completion starting from the root directory.
To do so, this patch adds a special case when setting the search
directory when the completion buffer points to the root directory.
Signed-off-by: Med Ismail Bennani <ismail@bennani.ma>