Fix 3 bugs: #964, #967, and that persistent cross-platform script permissions bug after unzipping

@wangguan59 can you try this out?  Best way to test is:
* Install a test central server
* Download single-server version (this will test #964)
* Install the single-server (this will test #967 and the non-numbered issue)