Make bashism conditional on the shell being bash

This avoids breakage due to 9643aa5d on shells other than bash.