Minor change to the automated_install script

This is to handle the difference in the sed behavior on mac