fs: Improve File.sed

Change-Id: I9d2e4abbb1bdc0f1542dc4562f232790cf2a2400
Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>