join_paths improvements