Removed bashisms from run.sh and debug.sh .
Added linux support to generate_system_info.sh .