Fix APPPATH redefine