Handle IOError exception if no /etc/os-release

On Synology DSM OS (Linux base), python throws an IOError when open does not find a file.
Previously only OSError was handled, now it handles both the OSError and IOError.