Fix package index generation to work on windows

Previously, the path to the index file was used. On windows this has backslashes which confuse sphinx, so the solution is to replace them with sphinx friendly forward slashes