outputs .Rout in correct folder