Fixing path splitting so it works on Windows as well

Fix the /api/ui/widgets feed when running the system on Windows.