Adjust Is DSO Extension test check

Switch from looking for "/../hhvm" to looking for "/../../hphp/test/run" to determine if we're inside of the hhvm code base, or in an external code base. This previously caused a false positive for my external extension which made the "make test" feature fail.

Also clean up some style issues with the test runner.