[dcap] Change into top dir before applying patches.