Replacing bash v4 code with bash v3 code to avoid syntax conflicts between the different base versions
related to issue #410