Improve check for index.php-ness in the cart URL.  Was causing Add to Cart to fail.