fix recongnition of files with a longer ext
fix recongnition of files with a longer ext

splitext would only get the shortest ext, so endswith() has to be used

wcmckee/nikola,knowsuchagency/nikola,atiro/nikola,knowsuchagency/nikola,andredias/nikola,masayuko/nikola,techdragon/nikola,okin/nikola,xuhdev/nikola,gwax/nikola,masayuko/nikola,immanetize/nikola,jjconti/nikola,jjconti/nikola,JohnTroony/nikola,schettino72/nikola,berezovskyi/nikola,TyberiusPrime/nikola,getnikola/nikola,okin/nikola,s2hc-johan/nikola,pluser/nikola,techdragon/nikola,immanetize/nikola,xuhdev/nikola,TyberiusPrime/nikola,lucacerone/nikola,atiro/nikola,wcmckee/nikola,x1101/nikola,x1101/nikola,JohnTroony/nikola,okin/nikola,JohnTroony/nikola,getnikola/nikola,xuhdev/nikola,berezovskyi/nikola,atiro/nikola,yamila-moreno/nikola,andredias/nikola,andredias/nikola,wcmckee/nikola,knowsuchagency/nikola,jjconti/nikola,yamila-moreno/nikola,lucacerone/nikola,gwax/nikola,yamila-moreno/nikola,s2hc-johan/nikola,berezovskyi/nikola,TyberiusPrime/nikola,pluser/nikola,getnikola/nikola,s2hc-johan/nikola,x1101/nikola,schettino72/nikola,lucacerone/nikola,schettino72/nikola,okin/nikola,pluser/nikola,techdragon/nikola,immanetize/nikola,gwax/nikola,masayuko/nikola,xuhdev/nikola,getnikola/nikola