Added a check for dash to chase out bashisms in the future