Making broken symbolic links

I have a script that uploads a folder of images to a server then makes a symbolic link pointing to the image folder elsewhere on the server. The script works perfectly from several Mac except one. There is one Mac that creates broken symlinks on the server. It won’t even work via the command line. How do I correct this? Do I have to reinstall OSX?