better version check for custom theme paths