[PATCH 1/2] kdumpctl: Kill duplicate code related to file modication check