Moved cmake dir & dep checks to the top dir