Pass on OSError exception when scanning local files (closes #7 and #49)