Fix problems with symlinks