sed -i argument temp file should be optional
This is valid with gnu sed:
sed -i s/oldtext/newtext/g /my/sed/file
But for the illumos implementation this must be changed too:
sed -i '' s/oldtext/newtext/g /my/sed/file
because -i expects either '' or that path to a backup file.