Change app.app_path to app.app_dir