Use GNU stat (BSD stat doesn't support -c).