I forgot that this file must be parsable by /bin/sh and not just bash

- switch to use a case statement for testing

- switch back to old style test conditional