override findBasePath function because it cannot handle a directory tree with multiple folders with the same name