Switched path::join() to be variadic

Review: https://reviews.apache.org/r/25818