Replaced complicated sed magic w/ simplified one.