Modified the commands so R will be used as the default if TM_REXEC is not defined