fix path problems for win, should still work for linux/mac