Check ARDUINO_HOME before use on Windows

On Windows ARDUINO_HOME has a default of None but is used to determine
the AVR_HOME. This caused an exception to be thrown before the
ARDUINO_HOME existence check had executed.