Fix extension matching with the '-' char.