Merge pull request #973 from CroNiX/patch-2

Change hardcoded "application" directory to use the APPPATH constant as ...