Fix certain issues in symlink generation.