Moved page dir builder for ease of use in tasking