Also consider the dot of the filename extension
Thanks to Christoph Feck for noticing!
CCMAIL: cfeck@kde.org