Ensure that we apply patches to the correct directory.