clever bash function to check SCP parms