When the modules dir is not within the main base, we don't correctly choose the common base path. As a result, we should choose something common for our internal path representation.