Try both abspath and realpath for _is_inside as on some systems, the real location of the data might be different from the rest of the package (e.g. Debian) but included via symbolic links, so the abspaths would agree, but not the realpaths.
Merge pull request #827 from astrofrog/fix-debian-data

votable failing on accessing file outside astropy tree on stdeb debian installation