make the shell script more robust to run on more general conditions
Merge pull request #6 from mabels/master

make the test shell script more generic