fix metadata.path on windows

thanks to @backflip for pointing out the issue in #1380