Refactor Path.join code to use array-style args