Check file exists and can be read, close #1598