Fixed windows download path and added permissions setting for osx config script