This PR continues from #5049 where we started supporting directories for erasure coded backend
This change brings a change which was done for the 'mc' package to allow for clean repo and have a cleaner github drop in experience.