Fix for when is GNU sed installed in homebrew with --default-names

This will fix issue when GNU sed is installed in $PATH with --default-names options, as -i between GNU and BSD versions of sed are not compatible.