Extend dir2variables