parser: add function to update the mtime for one file, courtesy Justin Patrin