Don't use sed to fill package parameters

The advantage of using prefix instead of libdir and datadir is that
we can use configure directly, and avoid the extra complication of
the sed command.