Revert "fix bashism"

This reverts commit 841ab7ae9cb23b2a5c8631c7188d4d3f4dbf6370.
Revert "Consistantly use bash builtin test `[[ ]]` for bash scripts"

This reverts commit 49762b0ae5e3ec95a36cc07d63ea8d844db9baeb.