Replace '/'.join with os.path.join