Fixed spec parsing bug, which prevented detection of trailing garbage in a spec.