Minor optimization in Exec.pm