Use a better way to check for right to left layout direction.

This method to check for RTL layout works with right to left pseudolanguage. Closes #22
Merge pull request #27 from vytis/right-to-left-layout

Use a better way to check for right to left layout direction.