replace a bad concatenation for a path with builtin os.path.join