Adjust Is DSO Extension test check

We now look for if we can traverse ../../hphp/test/run back to ourselves instead.  This fixes a false positive when you have a ../hhvm folder outside of your DSO extension folder.

Also fixes some style issues.

This is a replacement pull for facebook/hhvm#4419.