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