add inode check to detect if file was replaced in jruby