Adapted to Win. Removed crash when file not found.