Fix for file checking not updating the last modified time