pass all possible extensions to basename