making sure that building and result dirs exist in repo