fix coreTheme detection for windows systems

hail the mighty /re[xg]ex/!