Add a script to set permissions correctly for Windows executables.
The logic is more clear, also, since we don't have to re-initiate each
time, the performance should be better.