Update util.py: Fix join_path function