Update the `swihooks.pl` file to use the source file property `derived_from/2` introduced in SWI-Prolog 6.0.0 instead of calling an internal predicate