Replace envsubst with sed

This makes the build script more portable since envsubst is part of the gettext suite. This fixes #13.