Remove hardcoded app folder

This issue has been referenced on different  forums a number of times. I propose this solution to allow for changing the app folder name in paths.php.