[fix] check for presence of ctime