fix(rewrite_tester): more reliably sniffs active rewrite rules

Under certain conditions curl would fail to open localhost URLs where
file_get_contents would handle fine. This tries file_get_contents first 
instead of curl.