Discover the base dir for shared files at run time