Linux compatibility

- Only add .exe to executable name on NT
- Do not replace / with \ on Linux