Refactoring of #get_disk_reference to fix symlink issue on JRuby.
Merge pull request #46 from repotag/realpath_fix

Refactoring of #get_disk_reference to fix symlink issue on JRuby.