Update doexport.php

Include current day to the date range
Add condition to check the collection existence
Merge pull request #3 from gserg/master

Merge: Include current day to the date range and add kernel not available test logic