Fix windows registry access
We don't need to change the working directory