Check that on windows ARDUINO_DIR (and MPIDE_DIR) is a relative path.

Checks for paths starting with / e.g. /cydrive/arduino or a
drive letter e.g. C:\Program Files\Arduino