hook path needs to be absolute
hook path needs to be absolute
Only pass specified elements to expand_dependencies