Support multiple basedirs.