Snow Leopard: Rewrite of rt.sh (2) + Fix a small bug in build.sh + Add check_subproject to functions.sh