use shelltools.makedirs instead of internal makedirs