Workaround for the differences between GNU and BSD versions of 'sed'
related to in-place edit