Added better handling for alt and cat with fewer than two inputs