Use command "getonefile" to get Versioned file, instead of "cat" command

(Fix issue #2003)

Signed-off-by: Yue Lin Ho <b8732003@student.nsysu.edu.tw>