fixed os_stat error
ensure the file exists before updating the fingerprint