Changed __DIR__ constant to app_path() helper

This solves an issue of "missing view" error in some environments. Those environments are probably badly configured, but this is more fail-safe.