Refactor the walk methods again.

Wether case is ignored is now a parameter of the method, instead of being
decided by the connection. This avoids network traffic for ssh URLs.

Scripts aren't updated yet to use those new parameters.