build: replace sed with sub