Use file separator for win, modify to substring, not regex