Apply os.path.join to all paths to avoid OS dependency problem