Fixed bug in new dirpathbase