Fix EOF file bug making icvSkipSpace halts forever