Fixed shell unit tests so that they are actually compatible with /bin/sh