When creating a new context, set lastcmd to now.