`sed -e ... -e ... ${WEB_DIR}/${PACKAGE}/config/main.inc.php.dist > ${WEB_DIR}/${PACKAGE}/config/main.inc.php`

Be lazy ;)