Fixed #4599 (False positive with fopen/fclose test)