Using different environment variables to guess root URL