Changed handling of special DOS devices to use real file handles