fixed problem with symlink dirs