Give explicit file: URLs for reftests. Allow specifying a fragment id

The previous commit made #top be considered part of the file name in
../html/acid2.html#top