Moss is broken

Moss is a code similarity testing tool. Autolab has moss integration, but it appears to be broken. The moss script can be downloaded from

http://moss.stanford.edu/general/scripts/mossnet

and put in the appropriate Autolab folder. However, moss doesn't work. I believe in prepping to run the script, autolab should copy the last submissions from each student into a temporary folder. Looking at the code, it looks like this should happen in app/controllers/courses_controller.rb but the code there is messy and appears to have a cut-paste error.