Tidy up the driver slightly
Fix library way detection; fixes the ImpSafeOnly* tests when BINDIST=YES

We were checking paths with
    if [ -f '"/path/to/Prelude"' ]
i.e. the " quotes were being quoted by the ' quotes. Now we just
use " quotes (which come from the ghc-pkg output).