Hook fix

if a hook is in a directory pointed by the PYTHONPATH defined in the config, ensure PYTHONPATH is loaded in sys.path prior to loading hooks