Bug 5995 Follow up: variable scope in koha/sco/sco-main.pl