Add join_paths method to join paths together.