Update logic to fetch and compile deps