fixes a pathing error in win32 when there are spaces in the path
Merge pull request #3962 from Pomax/generate_ephemeral_fix

fixes a pathing error in win32 when there are spaces in the path