making sure that path.normalize gets strings