Fix component loading if .qml occurs in the path

For example /home/me/application.qmltest/main.qml. '.qml' occurs twice.