The problem was that you can't omit the parameter for -i (the extension for backup files) with Mac's sed. Change-Id: I8cc5404d5d99526c160082c357fc38629e08d7d2