Use app_path in global file. Closes #1975.