Adapt various helper commands to work when the location is a list.