Simplify file extension handling
Workaround for new AUR requiring pkgbase