second implementation of bash script which tests amber version command