changed length of rstfile variable for full path cases