Fix which system command on ubuntu