gsed -> sed

gsed doesn't exist on Debian so I've reverted that part.