I could not run SMLNJ on Mavericks It shows me the error
sml: unable to determine architecture/operating system
I also looked in /usr/local/sml
You can use this .pkg file to reinstall the SML and see if the problem happens again.