better detection of apppath and config path when running in jetty with multiple locations