Extract environment variables from query params