fixed code to determine file inode - should work now