Fix for LibreOffice Icon missing

This should fix generating Icons e.g. for LibreOffice whereas the icon is missing sometimes
Merge pull request #1 from flubshi/master

Improve generating Icons e.g. for LibreOffice