Support python2.7 distutils format of directories