Added checks for required programs in shellscripts

This adds some awesome and very complex checks