fix a bug introduced in efd26833015a

The bug meant that teachpacks whose names ended
in the extension .ss didn't work right.