I'll answer myself just in case someone has the same problem. I still don't know why the previous code works in one place and not in the other, but just using btn-toolbar-justified instead of btn-toolbar does the trick. It doesn't really justify the buttons, but it centers them.
Anyway, i'm still interested in what i did wrong before if someone is so kind to tell me, eventhough i found a "fix".
Thanks