Fix env vars in index.php