[dcap] Change directory before applying patches.