The script fails to give the user source files the right language file format (ie. "<filename>.%l", instead of "<filename>.cpp"), so I now made it replace %l in the filename with 'submission.language'.