Fix reloading of the root directory.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>