Fix file_exists return false even if file exists.