[Common] Fixed resolving absolute directories in the directory manager