Hotfix/sed in place crossplatform fix

This fixes the cross-platform issue with sed -i (edit files in-place)