pathlib.Path objects are not supported in subprocess calls on Windows before Python 3.8, so we must convert to a string.