Revert the bash version in the replace function