fix bug - r_dir wasn't actually echoed to vars.bat