Support singleton filenames.

Previously, track ids were assumed to be part of every filename. This
assumption does not hold for singleton tracks.