Fix sed bug (was missing in-place edit