Validating command line arguments in shell script