fix breakage in problem checker caused by LoncapaProblem taking a file object in its constructor instead of a filename