Added option for building partial directories