Fixed JENKINS-18157

Check if file already ends with .jelly and don't add if it does.