Fix for readstream, if the file does not exist fire error and end events on next process tick. This is more according to spec than just to throw an exception.
windows compatability fix.