Work-around JRuby Issue 538

[#50752269]

File.realpath does resolve symlinks in JRuby
(https://github.com/jruby/jruby/issues/538).  To work-around the issue,
wrap compatibility code in MetasploitDataModels::File.realpath.