Fixes invalid value return on Linux StdioFileHandle