[BACKLOG-435] - Fixing potential path issues on windows, changing dir cr...

...eate retry logic, cleaning up temp dir when done