Added quotes around APPNAME.