University assignment -- shell script to find multiple versions of installed programs