Remove most bashisms from main script
Remove some bashisms from tests
Run the script by default for non-bash shells
A couple more bashisms squashed
0.1.2