Hopefully the command will work now. Had to revert back to using
an empty additional suffix for backup as otherwise the $file
command was being mistaken for part of the sed replace