[PATCH 09/16] tools: Add support for multiple parent directories.