Fix symlink issue with directories