fix symlink handling