Fixed incompatibility with old bash version