Add join function for joining paths