Approate closed file in test_ramfs_command