Snow Leopard: Factor out setting paths from build.sh and use new funtion in both build.sh and rt.sh