Fix dropdown menu arrow when navbar is on the right

When the navbar dropdown menu is on the left, the arrow on top of the dropdown menu is aligned well, however it does not switch to the right side when the dropdown menu is on the right (.navbar-right class).

This pull request fixes this issue.