added HostingEnvironment.MapPath call for applications hosted by ApplicationManager