Check major/minor version before setting theme directory

Closes #1412