[rt#70201] replace -M with Time::HiRes::stat

Use Time::HiRes::stat if available and fallback to a normal stat().

Signed-off-by: Chris 'BinGOs' Williams <chris@bingosnet.co.uk>