add support for pkg/category_port/{before,after}.sh scripts