Change how we resolve the root directory
- Read the application base from IApplicationEnvironment
  when running in the KRuntime