more attempts to debug the io return value issue on w32
Merge pull request #610 from monkeyiq/2013june/collabtmpdir6

more attempts to debug the io return value issue on w32