Replace vanilla-Window with env variable check

Fixes #5 kinda