Small improvement for the dir:pkg syntax