Bash Replace String In Variable Php