move assert_if_modified to PVE::Tools