Restructured dirtree library and its dependencies