Added the path variable to the arduino sources too and renamed MAIN_PATH to AP_PATH.