tools: use tal/path instead of writing own path handlers.