Fixes #3753 - always use main_app to determine paths for running an isolated namespace plugin