Path manipulation for windows

The backtick command wasn't working on 64 bit machines due to the brackets in path directories such as `C:\Program Files (x86)\Microsoft ...`. It would drop out with the amusing error:

```
\Microsoft was unexpected at this time
```

This fixes that.