fixed incorrect search/replace for SERVICE_NAME

improved escaping of search string for sed, you can now have absolute
paths for the command