end/check: Handle multiple directories