Initial pass to porting to /bin/sh

Switches shebang to /bin/sh, substitutes double-bracketed conditional
checks for single-brackets ones, and replaces brace expansions with just
a regular wildcard character.