Update isTempName to be compatible with Windows

```path.Base()``` is for slash-separated paths, whereas Windows uses "\" to separate paths. Just convert the \ to / and it's good.