SW-98. Minor fixes, and add executable bit to top-level scripts for Linux.