use patch -d instead of cd