fixing a bunch of 'sed' commands - didn't know the -i options argument was non-optional in bsd-sed