Added os.path.normpath for Windows.

This PR corrects the `_get_metadata_path` and `_get_data_path` to normalize the path, so that when run on Windows, a mixture of path types does not result in an invalid filename.