autotools: added the stat command to the automagically replaced ones