fix path.join bug