XD-1881: Cope with ending slash in xd.home

do we need to worry about null here? (this is retrieving a thread local that is initially set within the instance of CommandLinePropertySourceOverridingListener upon receiving the ApplicationEnvironmentPreparedEvent)