[dunecontrol,bugfix] Fixes issues with posix sed.