Fix error with passing extra args to path.join.