Snow Leopard: Rewrite of rt.sh + Move output mode code up in build.sh