Set modetime if it doesn't exist.